package com.action.gulimall.product.service;

import com.action.common.utils.PageUtils;
import com.action.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.action.gulimall.product.vo.SpuItemAttrGroupVo;
import com.action.gulimall.product.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author shilun
 * @email sunlightcs@gmail.com
 * @date 2021-06-08 17:38:25
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String,Object> params, Long categoryId);

    void removeGroupAndRelation(List<Long> longs);

    List<AttrGroupWithAttrsVo> getAllGroupAttrByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

